//PC端设备的路由配置
export default [
    //默认404错误页面
    {
        path: '*',
        name: 'pNotFound',
        component: resolve => require.ensure([], () => resolve(require('@/views/pc/MyNotFound')), 'pNotFound'),
        meta: {
            title: '404未找到',
        },
    },
    //PC端的首页组件
    {
        path: '/pIndex',
        name: 'pIndex',
        component: resolve => require.ensure([], () => resolve(require('@/views/pc/Index')), 'pIndex')
    },
    //跳转到登录和注册的路由
    {
        path: '/pLogin',
        name: 'pLogin',
        component: resolve => require.ensure([], () => resolve(require('@/views/pc/Login')), 'pLogin')
    },
    {
        path: '/pBlogList/:catalog',
        name: 'pBlogList',
        component: resolve => require.ensure([], () => resolve(require('@/views/pc/MyBlogList')), 'pBlogList')
    },
    //PC端的博文详情组件
    {
        path: '/pBlogDetails',
        name: 'pBlogDetails',
        component: resolve => require.ensure([], () => resolve(require('@/views/pc/MyBlogDetails')), 'pBlogDetails')
    },
    //课程列表路由
    {
        path: '/pCourseList/:catalog',
        name: 'pCourseList',
        component: resolve => require.ensure([], () => resolve(require('@/views/pc/MyCourseList')), 'MyCourseList')
    },
    //课程详细信息路由
    {
        path: '/pCourseDetails',
        name: 'pCourseDetails',
        component: resolve => require.ensure([], () => resolve(require('@/views/pc/MyCourseDetails')), 'pCourseDetails')
    },
    //发表博文
    {
        path: '/pPostArticle',
        name: 'pPostArticle',
        component: resolve => require.ensure([], () => resolve(require('@/views/pc/MyPostArticle')), 'pPostArticle'),
        meta: {
            requireAdmin: true
        }
    },
    //更新博文
    {
        path: '/pEditArticle/:aid',
        name: 'pEditArticle',
        component: resolve => require.ensure([], () => resolve(require('@/views/pc/MyEditArticle')), 'pEditArticle'),
        meta: {
            requireAdmin: true
        }
    }
]